import { Account } from '../types/account.type';
import { Role } from '../types/role.type';

/** Provider */
export const databaseProviderName: string = 'DATABASE_CONNECTION';
export const accountModelProvider: string = 'ACCOUNT_MODEL';
export const reservationModelProvider: string = 'RESERVATION_MODEL';
export const loggerProvider = 'LOGGER';
/** Decorator */
export const ANONYMOUS_DECORATOR_KEY = 'anonymous';
export const ROLE_DECORATOR_KEY = 'role';

export const jwtConstants = {
  secret:
    'DO NOT USE THIS VALUE. INSTEAD, CREATE A COMPLEX SECRET AND KEEP IT SAFE OUTSIDE OF THE SOURCE CODE.',
};
export const signInExpire = 60 * 60 * 24;

export const initAccounts: Account[] = [
  {
    account: 'admin',
    password: 'admin',
    role: Role.Employee,
  },
  {
    account: 'guest',
    password: 'guest',
    role: Role.Guest,
  },
];
